<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<title>销售员</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css">
<body>
    <script language="JavaScript">
        function check() {
            if (form1.CustomerName.value == 0) {
                alert("请输入用户名");
                form1.loginName.focus();
                return;
            }
            if (form1.CustomerAddress.value == 0) {
                alert("请输入密码");
                form1.password.focus();
                return;
            }
            if(form1.mobilenumber.value==0)
            {
                alert("请输入邮箱");
                form1.password.focus();
                return;
            }
            form1.submit();
        }
    </script>
    <table width="584" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="27" colspan="6" bgcolor="#EEEEEE" class="tableBorder_gray">&nbsp;<span class="word_deepgrey">
                    当前位置：系统设置> </span>客户档案 &gt;&gt;&gt;
            </td>
        </tr>
        <tr>
            <td height="40"></td>
        </tr>
        <tr>
            <td valign="top" height="83">
                <table width="100%" height="112" border="0" cellpadding="0" cellspacing="0">
            <form name="form1" action="${ctx}/customerAction.do?method=addCustomer" method="post">
            <input type ="hidden" name="CustomerID" value = "${CustomerID}"></input>
            <tr>
                <td align="center">客户名：</td> <td> <input type="text" name="CustomerName" value="${CustomerName}"></input>
                <input type="text" name="failCustomerName" value="${failCustomerName}" >
                </td>
            </tr>
           <tr>
                <td align="center">客户地址：</td> <td> <input type="text" name="CustomerAddress" value="${customerAddressvalue}"></input>
                </td>
            </tr>
           <tr>
                <td align="center">客户手机号：</td> <td> <input type="text" name="mobilenumber" value="${mobilenumber}"></input>
                </td>
            </tr>
            <tr>
                <td align="center"><input name="submit1" type="button"
                    class="btn_grey" value="确认" onClick="check()"> &nbsp;
                </td>
                <td> 
                </td>
            </tr>
     </form>
        </table>
            </td>
        </tr>
    </table>
</body>
</html>